<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 对象转数组
        let json = {
            0: 'apple',
            1: 'banana',
            2: 'orange',
            3: 'tomoto',
            length:4
        }
        let arr = Array.from(json)
        console.log(arr);
          
    </script>
</head>
<body> 
    <ul>
        <li>123</li>
        <li>345</li>
        <li>567</li>
        <li>678</li>
    </ul>
    
</body>
</html>